package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.DailyCollect;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DailyCollectMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(DailyCollect record);

    DailyCollect selectByPrimaryKey(Integer id);

    List<DailyCollect> selectAll();

    int updateByPrimaryKey(DailyCollect record);

    DailyCollect selectByUserIdAndDailyId(@Param("userId") Long userId, @Param("dailyId") Long dailyId);

    int selectCount(Long dailyId);
}